﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleVisio.Util
{
    public static class CoOrdinates
    {
        public enum Direction
        {
            MOVERIGHT=0,
            MOVEDOWN=1
        }
        public static Point getNextPoint(Point p, Direction direction)
        {
            Point next = new Point();
            switch(direction)
            {
                case Direction.MOVERIGHT:
                    {
                        next.X = p.X + 2;
                        next.Y = p.Y;
                        break;
                    }
                case Direction.MOVEDOWN:
                    {
                        next.X = 1;
                        next.Y = p.Y + 4;
                        break;
                    }
                default:
                    {
                        next.X = p.X + 3;
                        next.Y = p.Y + 3;
                        break;
                    }
            }

            return next;
        }
    }
}
